import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import type { App } from "vue"
import { useRouterTabStore } from './routerTab/routerTab';

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

function registerStore(app:App<Element>) {
    app.use(pinia)
    
    const routeStore = useRouterTabStore()
    console.log('routeStore', routeStore);
    return pinia
}



export default registerStore